home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16378 < prev    next >
Encoding:
Text File  |  1996-08-05  |  641 b   |  21 lines

  1. Newsgroups: comp.sys.sgi.apps,comp.lang.c++
  2. Path: in1.uu.net!allegra!alice!ark
  3. From: ark@research.att.com (Andrew Koenig)
  4. Subject: Re: SGI's C++ compiler and the boolean type
  5. Message-ID: <DpnDuH.6GJ@research.att.com>
  6. Organization: AT&T Research, Murray Hill NJ
  7. References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no>
  8. Date: Wed, 10 Apr 1996 13:08:41 GMT
  9.  
  10. In article <4kg6fv$h7k@nic.ftns.no> art@mother.idg.no writes:
  11.  
  12. > And some argue that true should be -1, because then bitwise not works:
  13.  
  14. > ~(true = -1) == (false = 0)
  15. > ~(false = 0) == (true = -1)
  16.  
  17. ... and  (3<4)==true   fails.
  18. -- 
  19.                 --Andrew Koenig
  20.                   ark@research.att.com
  21.